package router

import (
	"k8sdev/pkg/apis"

	"github.com/gin-gonic/gin"
)

func InitRouter(r *gin.Engine) {
	r.GET("/ping", apis.Ping)
	r.GET("/nodes", apis.GetNodes)
	r.GET("/namespaces", apis.GetNamespaces)
	r.GET("/namespace/:namespaceName/pods", apis.GetPods)
	r.GET("/gvr", apis.GetGVR)
	r.GET("/watch/:namespaceName/pods", apis.WatchPods)
	r.GET("/informers/:group/:version/:resources", apis.Informer)
	r.Any("/proxy/*action", apis.Proxy)
}
